scala_library(
    sources = [
        "scala-2.12-/**/*.scala",
        "scala/**/*.scala",
    ],
    compiler_option_sets = {"fatal_warnings"},
    provides = scala_artifact(
        org = "com.twitter",
        name = "finagle-core",
        repo = artifactory,
    ),
    dependencies = [
        "3rdparty/jvm/com/github/ben-manes/caffeine",
        "3rdparty/jvm/com/google/code/findbugs:jsr305",
        "3rdparty/jvm/org/hdrhistogram",
        "3rdparty/jvm/org/scala-lang/modules:scala-collection-compat",
        "finagle-internal/init/src/main/scala",
        "finagle/finagle-core/src/main/resources",
        "finagle/finagle-init/src/main/scala",
        "finagle/finagle-toggle",
        "util/util-app",
        "util/util-cache",
        "util/util-codec",
        "util/util-core/src/main/scala",
        "util/util-hashing",
        "util/util-jvm",
        scoped(
            "util/util-lint",
            scope = "forced",
        ),
        "util/util-logging",
        "util/util-registry",
        "util/util-security",
        "util/util-stats",
        "util/util-tunable/src/main/scala",
    ],
    exports = [
        "util/util-core/src/main/scala",
        "util/util-logging",
        "util/util-registry",
        "util/util-stats",
        "util/util-tunable/src/main/scala",
    ],
)
